#include <iostream>
#include <vector>
#include "./cmdline.h"
#include "./tolf/tolf.h"
namespace fs = std::filesystem;
int main(const int argc, const char *const argv[])
{
    std::vector<std::string> args;
    for (int i = 0; i < argc; i++)
    {
        args.push_back(std::string(argv[i]));
    }
    cmdline::parser par;
    par.add<std::string>("dir", 'd', "需要处理的目录路径", false);
    // par.add<std::string>("dir", 'd', "需要处理的目录路径", false);
    par.parse_check(args); // 解析参数
    auto &d = par.get<std::string>("dir");
    fs::path dir = d.empty() ? fs::current_path() : d;
    whh::Tolf handle(dir);
    handle();
    return 0;
}
